import React from "react";
import { Navigate } from "react-router-dom";
import Select from "./pages/Test";

export interface RouteModal {
  path?: string;
  name?: string;
  children?: RouteModal[];
  element?: JSX.Element;
  index?: boolean;
  errorElement?: JSX.Element;
}

const routes: RouteModal[] = [
  {
    index: true,
    element: <Navigate to="/select" replace={true} />,
  },
  {
    path: "/select",
    name: "下拉框",
    element: <Select />,
  },
];

export default routes;
